Skip to content

fix(backend-vercel): retry a write whose answer was lost - #806

Open
vercel[bot] wants to merge 1 commit into
mainfrom
fix/backend-vercel-retry-lost-answer
Open

vercel[bot] wants to merge 1 commit into
mainfrom
fix/backend-vercel-retry-lost-answer

Conversation

@vercel

@vercel vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

From an agent's CLI feedback: in a loop of tasks claim, 2 of 5 claims printed network_error ("Vercel's API didn't answer"), yet the claim had landed, so a retry was refused with task_claimed by the same profile. vercel()'s api() gave up on a thrown fetch at once, and the claim token it made for that call was lost with it. Now a write the API can tell it has seen (one with an operationId) goes again on a thrown fetch, as it already does on a 503, with the same body, so the API answers the claim it made with the token the caller gets back.

  • Users: tasks claim (and other task writes) on Vercel's board survives a dropped connection: the claim that landed is returned instead of network_error.
  • Protocol / backends: none. Relies on the API answering a repeated operationId as it did the first time, as the 503 retry already does.
  • Performance / I/O: a write whose fetch throws is sent up to 4 more times, with the same 1s-doubling backoff as 503s; before, it failed at once. GETs retry the same way.
  • Tests: backend-vercel-tasks.test.ts claims a task by ID against the fake Vercel messageboard API, with the first claim's answer lost after the API wrote it. On main it fails with BoardError: Vercel's API didn't answer: fetch failed; with the fix the retry carries the same operation ID and token and the claim completes.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vboard-preview-publisher Ready Ready Preview Nov 23, 2026 8:59am UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants